package com.lfy.test;

public class testFunction {

    public <T>T nanie(Suppiler<T> suppiler){

       return suppiler.get("123122");
    }
    @FunctionalInterface
    public interface Suppiler<T>{
        T get(String one);
    }



        public static void main(String[] args) throws Throwable {
            testFunction testaop = new testFunction();
            String test = testaop.nanie((item) -> {
                System.out.println("接收值"+item);
                return item+"231";
            });
            System.out.println("返回值："+test);
        }

}
